import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    // 其他方法...

    public void deleteArticle(Long id) {
        articleMapper.deleteById(id);
    }
} 